import {
    Entity,
    Column,
    PrimaryGeneratedColumn,
    UpdateDateColumn,
  } from 'typeorm';
  @Entity()
  export class Share{
    @PrimaryGeneratedColumn('uuid')
    id: string;

    @Column()
    title: string;

    @Column({default:0})
    peopleCount:number;

    @Column({ default: true })
    download:boolean;

    @Column()
    belong:string;

    @Column()
    scenceuuid:string;

    @Column({
        type: 'timestamp without time zone',
        default: () => 'CURRENT_TIMESTAMP',
      })
      create_time: Date;
    
      @UpdateDateColumn({
        type: 'timestamp without time zone',
        default: () => 'CURRENT_TIMESTAMP',
      })
      update_time: Date;
  }
